<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>Layui</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="/layui/css/layui.css"  media="all">
  <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
</head>
<body>

<form class="layui-form layui-form-pane" action="">
  
  <div class="layui-form-item">
  
  	<div class="layui-inline">
      <label class="layui-form-label">商品名</label>
      <div class="layui-input-inline">
        <input type="text" name="bookName" autocomplete="off" class="layui-input">
      </div>
    </div>

    
    <div class="layui-inline">
      <button class="layui-btn" lay-submit="" lay-filter="query">查询</button>
    </div>
    
  </div>
</form>

<table class="layui-hide" id="test" lay-filter="test"></table>


<!-- 新增和编辑的表单 -->
<div id="edit-form-div" style="display:none; padding:20px;">
	<form class="layui-form" id="edit-form" action="" lay-filter="edit-form" >
	   <input type="hidden" name="id" value="" />
	
	  <div class="layui-form-item">
	    <label class="layui-form-label">出库ID</label>
	    <div class="layui-input-block">
	      <input type="text" name="orderId" lay-verify="required" lay-reqtext="ID不能为空" autocomplete="off" placeholder="请输入ID" class="layui-input">
	    </div>
	  </div>
	  <div class="layui-form-item">
	    <label class="layui-form-label">出库日期</label>
	    <div class="layui-input-block">
	      <input type="date" name="orderTime" placeholder="" autocomplete="off" class="layui-input">
	    </div>
	  </div>
	  <div class="layui-form-item">
	    <label class="layui-form-label">经办人</label>
	    <div class="layui-input-block">
	      <input type="text" class="layui-input" id="agent" name="agent" placeholder="" lay-key="1">
	    </div>
	  </div>
	  
	 <div class="layui-form-item">
	    <label class="layui-form-label">经办日期</label>
	    <div class="layui-input-block">
	      <input type="date" class="layui-input" id="agentDate" name="agentDate" placeholder="" lay-key="1">
	    </div>
	  </div>
	  
	  	  <div class="layui-form-item">
	    <label class="layui-form-label">同意人</label>
	    <div class="layui-input-block">
	      <input type="text" class="layui-input" id="approver" name="approver" placeholder="" lay-key="1">
	    </div>
	  </div>
	  	  	  <div class="layui-form-item">
	    <label class="layui-form-label">供应商</label>
	    <div class="layui-input-block">
	      <input type="text" class="layui-input" id="supplier" name="supplier" placeholder="" lay-key="1">
	    </div>
	  </div>
	  
	  
	  
	  <div class="layui-form-item">
	    <div class="layui-input-block">
	      <button type="submit" class="layui-btn" lay-submit="" lay-filter="save">保存</button>
	      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
	    </div>
	  </div>
	</form>
</div>



 
<script type="text/html" id="toolbarDemo">
  <div class="layui-btn-container">
	<button class="layui-btn layui-btn-sm layui-btn-normal" lay-event="add">新增</button>
    <button class="layui-btn layui-btn-sm" lay-event="getCheckData">获取选中行数据</button>
    <button class="layui-btn layui-btn-sm" lay-event="getCheckLength">获取选中数目</button>
    <button class="layui-btn layui-btn-sm" lay-event="isAll">验证是否全选</button>
  </div>
</script>
 
<script type="text/html" id="barDemo">
  <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
  <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
</script>
              
          
<script src="/layui/layui.js" charset="utf-8"></script>
<script src="/modules/goods.js" charset="utf-8"></script>
</body>
</html>